package com.starblink.utils.network.ext

import com.apollographql.apollo3.api.Optional

fun <T> T.optional() = Optional.present(this)


fun <T> T?.optionalOrAbsent() = if (this == null) Optional.Absent else Optional.present(this)